import request from '@/request/index.js';

/**
 * 查询风险控制措施模板主列表
 */
export const riskList = (params) => {
	return request.get({
		url: '/wsd/riskMeasures/list',
		data: params,
	});
};
/**
 * 新增
 */
export const riskAdd = (params) => {
	return request.post({
		url: '/wsd/riskMeasures/add',
		data: params,
	});
};
/**
 * 获取操作票详情
 */
export const getInfo = (params) => {
	return request.post({
		url: '/wsd/operateOrder/getInfo',
		data: params,
	});
};
/**
 * 风险措施步骤操作
 */
export const orderRiskOperate = (params) => {
	return request.post({
		url: '/wsd/operateOrder/orderRiskOperate',
		data: params,
	});
};
/**
 * 操作票-交接操作流程修改提交
 */
export const handoverUpdateApply = (params) => {
	return request.post({
		url: '/wsd/operateOrder/handoverUpdateApply',
		data: params,
	});
};
/**
 * 交接确认
 */
export const handoverConfirm = (params) => {
	return request.post({
		url: '/wsd/operateOrder/handoverConfirm',
		data: params,
	});
};
// 跳步内容详情
export const jumpDetails = (id) => {
	return request.get({
		url: '/wsd/basis/jumpDetails?id=' + id,
	});
};
// 交接内容修改记录详情
export const handoverDetails = (id) => {
	return request.get({
		url: '/wsd/basis/handoverDetails?id=' + id,
	});
};
// 获取操作票详细信息
export const operateOrderGetInfo = (params) => {
	return request.post({
		url: '/wsd/operateOrder/getInfo',
		data: params,
	});
};
// 获取待变列表 
export const getWaitieProcessList = (params) => {
	return request.post({
		url: '/phoneOverhaul/getWaitieProcessList',
		data: params,
	});
};